package io.qar.skuAuditLogs.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;
import java.util.Date;

/**
 * SKU审计日志表
 *
 * @author yyyyjinying 1020066395@qq.com
 * @since 3.0 2024-06-10
 */
@Data
@ContentRowHeight(20)
@HeadRowHeight(20)
@ColumnWidth(25)
public class SkuAuditLogsExcel {
    @ExcelProperty(value = "关联的SKU ID", index = 0)
    private Long skuId;
    @ExcelProperty(value = "操作类型", index = 1)
    private Object action;
    @ExcelProperty(value = "变更的字段及前后值（JSON格式）", index = 2)
    private Object changedFields;
    @ExcelProperty(value = "执行操作的用户ID", index = 3)
    private Long userId;
    @ExcelProperty(value = "操作时间", index = 4)
    private Date timestamp;
    @ExcelProperty(value = "餐厅id", index = 5)
    private Long restaurantId;
}